home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libnspr4-0d.preinst < prev    next >
Text File  |  2009-08-10  |  580b  |  23 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. migratious_files="libnspr4.so libplc4.so libplds4.so"
  6.  
  7. if [ "$1" = "upgrade" ]; then
  8.     for f in $migratious_files; do
  9.         # before new binaries get installed, we move the links
  10.         if [ -L /usr/lib/$f ]; then
  11.             rm -f /usr/lib/XNOLDCONFIG_$f.new-migration
  12.             mv /usr/lib/$f /usr/lib/XNOLDCONFIG_$f.new-migration
  13.         fi
  14.         # before the new links get installed, we move the old binaries
  15.         if [ -r /usr/lib/$f.0d -a ! -L /usr/lib/$f.0d ]; then
  16.             rm -f /usr/lib/XNOLDCONFIG_$f.0d.new-migration
  17.             mv /usr/lib/$f.0d /usr/lib/XNOLDCONFIG_$f.0d.new-migration
  18.         fi
  19.     done
  20. fi
  21.  
  22.  
  23.